{% extends "base.html" %}

{% block content %}
<div class="row justify-content-center">
  <div class="col-md-6">
    <h2 class="mb-4">注册</h2>
    <form method="POST">
      {{ form.hidden_tag() }}
      <div class="mb-3">
        {{ form.username.label(class="form-label") }}
        {{ form.username(class="form-control") }}
      </div>
      <div class="mb-3">
        {{ form.password.label(class="form-label") }}
        {{ form.password(class="form-control") }}
      </div>
      <div class="mb-3">
        {{ form.password2.label(class="form-label") }}
        {{ form.password2(class="form-control") }}
      </div>
      {{ form.submit(class="btn btn-primary w-100") }}
    </form>
    <div class="mt-3">
      已有账号？ <a href="{{ url_for('auth.login') }}">立即登录</a>
    </div>
  </div>
</div>
{% endblock %}